// 模拟数据
var treeData = [
    {
        title: 'A-1', id: 1, field: 'name1', checked: true, spread: true,
        children: [{ title: 'B-1-1 可允许跳转', id: 3, field: 'name11', href: '', children: [{ title: 'C-1-1-3', id: 23, field: '', children: [{ title: 'D-1-1-3-1', id: 24, field: '', children: [{ title: 'E-1-1-3-1-1', id: 30, field: '' }, { title: 'E-1-1-3-1-2', id: 31, field: '' }] }] }, { title: 'C-1-1-1', id: 7, field: '', children: [{ title: 'D-1-1-1-1 可允许跳转', id: 15, field: '', href: '' }] }, { title: 'C-1-1-2', id: 8, field: '', children: [{ title: 'D-1-1-2-1', id: 32, field: '' }] }] }, { title: 'B-1-2', id: 4, spread: true, children: [{ title: 'C-1-2-1', id: 9, field: '', disabled: true }, { title: 'C-1-2-2', id: 10, field: '' }] }, { title: 'B-1-3', id: 20, field: '', children: [{ title: 'C-1-3-1', id: 21, field: '' }, { title: 'C-1-3-2', id: 22, field: '' }] }]
    },
    {
        title: 'A-2', id: 2, field: '', spread: true,
        children: [{
            title: 'B-2-1', id: 5, field: '', spread: true,
            children: [{ title: 'C-2-1-1', id: 11, field: '' }, { title: 'C-2-1-2', id: 12, field: '' }]
        },
        {
            title: 'B-2-2', id: 6, field: '',
            children: [{ title: 'C-2-2-1', id: 13, field: '' }, { title: 'C-2-2-2', id: 14, field: '', disabled: true }]
        }]
    },
    {
        title: 'A-3', id: 16, field: '',
        children: [{
            title: 'B-3-1', id: 17, field: '', fixed: true,
            children: [{ title: 'C-3-1-1', id: 18, field: '' }, { title: 'C-3-1-2', id: 19, field: '' }]
        },
        {
            title: 'B-3-2', id: 27, field: '',
            children: [{ title: 'C-3-2-1', id: 28, field: '' }, { title: 'C-3-2-2', id: 29, field: '' }]
        }]
    }
];
var comTableCols = [
    // { type: 'checkbox', fixed: 'left' },
    { field: 'id', width: 80, title: 'ID', sort: true, },
    { field: 'username', width: 80, title: '用户' },
    { field: 'email', title: '邮箱 <i class="layui-icon layui-icon-tips layui-font-14" lay-event="email-tips" title="该字段开启了编辑功能" style="margin-left: 5px;"></i>', fieldTitle: '邮箱', hide: 0, width: 150, expandedMode: 'tips', },
    { field: 'sex', width: 80, title: '性别', sort: true },
    { field: 'sign', title: '签名', },
    { field: 'experience', width: 100, title: '积分', sort: true, },
    { field: 'checkin', title: '打卡', width: 100, sort: true, },
    { field: 'ip', title: 'IP', width: 120 },
    { field: 'joinTime', title: '加入时间', width: 120 },
    {
        fixed: 'right', title: '操作', width: 134, minWidth: 125, templet: function (rowdata) {
            return '<div class="tableOperBox hide" data-index="">' +
                '<a class="iconfont icon-edit m-r-5" lay-event="edit"></a>' +
                '<a class="iconfont icon-delete" lay-event="del"></a>' +
                '</div>';
        }
    }
];
var tableData = [
    {
        "id": "10001",
        "username": "李白",
        "email": "test1@email.com",
        "sex": "男",
        "city": "浙江杭州",
        "sign": "君不见，黄河之水天上来，奔流到海不复回。 君不见，高堂明镜悲白发，朝如青丝暮成雪。 人生得意须尽欢，莫使金樽空对月。 天生我材必有用，千金散尽还复来。 烹羊宰牛且为乐，会须一饮三百杯。 岑夫子，丹丘生，将进酒，杯莫停。 与君歌一曲，请君为我倾耳听。(倾耳听 一作：侧耳听) 钟鼓馔玉不足贵，但愿长醉不复醒。(不足贵 一作：何足贵；不复醒 一作：不愿醒/不用醒) 古来圣贤皆寂寞，惟有饮者留其名。(古来 一作：自古；惟 通：唯) 陈王昔时宴平乐，斗酒十千恣欢谑。 主人何为言少钱，径须沽取对君酌。 五花马，千金裘，呼儿将出换美酒，与尔同销万古愁。",
        "experience": "12",
        "ip": "192.168.0.8",
        "checkin": "106",
        "joinTime": "2016-10-14"
    },
    {
        "id": "10002",
        "username": "杜甫",
        "email": "test2@email.com",
        "sex": "男",
        "city": "浙江杭州",
        "sign": "舍南舍北皆春水，但见群鸥日日来。花径不曾缘客扫，蓬门今始为君开。盘飧市远无兼味，樽酒家贫只旧醅。肯与邻翁相对饮，隔篱呼取尽余杯。",
        "experience": "116",
        "ip": "192.168.0.8",
        "checkin": "108",
        "joinTime": "2016-10-14",
        // "LAY_CHECKED": true
    },
    {
        "id": "10003",
        "username": "苏轼",
        "email": "test3@email.com",
        "sex": "男",
        "city": "浙江杭州",
        "sign": "大江东去，浪淘尽，千古风流人物。故垒西边，人道是，三国周郎赤壁。乱石穿空，惊涛拍岸，卷起千堆雪。江山如画，一时多少豪杰。遥想公瑾当年，小乔初嫁了，雄姿英发。羽扇纶巾，谈笑间，樯橹灰飞烟灭。故国神游，多情应笑我，早生华发。人生如梦，一尊还酹江月。",
        "experience": "65",
        "ip": "192.168.0.8",
        "checkin": "106",
        "joinTime": "2016-10-14"
    },
    {
        "id": "10004",
        "username": "李清照",
        "email": "test4@email.com",
        "sex": "女",
        "city": "浙江杭州",
        "sign": "昨夜雨疏风骤，浓睡不消残酒。试问卷帘人，却道海棠依旧。知否，知否？应是绿肥红瘦。",
        "experience": "777",
        "ip": "192.168.0.8",
        "checkin": "106",
        "joinTime": "2016-10-14"
    },
    {
        "id": "10005",
        "username": "冰心",
        "email": "test5@email.com",
        "sex": "女",
        "city": "浙江杭州",
        "sign": "保持真善美，温和待人",
        "experience": "86",
        "ip": "192.168.0.8",
        "checkin": "106",
        "joinTime": "2016-10-14"
    },
    {
        "id": "10006",
        "username": "张三",
        "email": "test6@email.com",
        "sex": "男",
        "city": "浙江杭州",
        "sign": "保持真善美，温和待人",
        "experience": "12",
        "ip": "192.168.0.8",
        "checkin": "106",
        "joinTime": "2016-10-14"
    },
    {
        "id": "10007",
        "username": "张三7",
        "email": "test7@email.com",
        "sex": "男",
        "city": "浙江杭州",
        "sign": "保持真善美，温和待人",
        "experience": "16",
        "ip": "192.168.0.8",
        "checkin": "106",
        "joinTime": "2016-10-14"
    },
    {
        "id": "10008",
        "username": "张三8",
        "email": "test8@email.com",
        "sex": "男",
        "city": "浙江杭州",
        "sign": "保持真善美，温和待人",
        "experience": "106",
        "ip": "192.168.0.8",
        "checkin": "106",
        "joinTime": "2016-10-14"
    },
    {
        "id": "10009",
        "username": "张三9",
        "email": "test9@email.com",
        "sex": "男",
        "city": "浙江杭州",
        "sign": "保持真善美，温和待人",
        "experience": "106",
        "ip": "192.168.0.8",
        "checkin": "106",
        "joinTime": "2016-10-14"
    },
    {
        "id": "10010",
        "username": "张三10",
        "email": "test10@email.com",
        "sex": "男",
        "city": "浙江杭州",
        "sign": "保持真善美，温和待人",
        "experience": "106",
        "ip": "192.168.0.8",
        "checkin": "106",
        "joinTime": "2016-10-14"
    },
    {
        "id": "10011",
        "username": "张三11",
        "email": "test11@email.com",
        "sex": "男",
        "city": "浙江杭州",
        "sign": "保持真善美，温和待人",
        "experience": "106",
        "ip": "192.168.0.8",
        "checkin": "106",
        "joinTime": "2016-10-14"
    },
    {
        "id": "10012",
        "username": "张三12",
        "email": "test12@email.com",
        "sex": "男",
        "city": "浙江杭州",
        "sign": "保持真善美，温和待人",
        "experience": "106",
        "ip": "192.168.0.8",
        "checkin": "106",
        "joinTime": "2016-10-14"
    },
    {
        "id": "10013",
        "username": "张三13",
        "email": "test13@email.com",
        "sex": "男",
        "city": "浙江杭州",
        "sign": "保持真善美，温和待人",
        "experience": "106",
        "ip": "192.168.0.8",
        "checkin": "106",
        "joinTime": "2016-10-14"
    },
    {
        "id": "10014",
        "username": "张三14",
        "email": "test14@email.com",
        "sex": "男",
        "city": "浙江杭州",
        "sign": "保持真善美，温和待人",
        "experience": "106",
        "ip": "192.168.0.8",
        "checkin": "106",
        "joinTime": "2016-10-14"
    },
    {
        "id": "10015",
        "username": "张三15",
        "email": "test15@email.com",
        "sex": "男",
        "city": "浙江杭州",
        "sign": "保持真善美，温和待人",
        "experience": "106",
        "ip": "192.168.0.8",
        "checkin": "106",
        "joinTime": "2016-10-14"
    },
    {
        "id": "10016",
        "username": "张三16",
        "email": "test16@email.com",
        "sex": "男",
        "city": "浙江杭州",
        "sign": "保持真善美，温和待人",
        "experience": "106",
        "ip": "192.168.0.8",
        "checkin": "106",
        "joinTime": "2016-10-14"
    },
    {
        "id": "10017",
        "username": "张三17",
        "email": "test17@email.com",
        "sex": "男",
        "city": "浙江杭州",
        "sign": "保持真善美，温和待人",
        "experience": "106",
        "ip": "192.168.0.8",
        "checkin": "106",
        "joinTime": "2016-10-14"
    },
    {
        "id": "10018",
        "username": "张三18",
        "email": "test18@email.com",
        "sex": "男",
        "city": "浙江杭州",
        "sign": "保持真善美，温和待人",
        "experience": "106",
        "ip": "192.168.0.8",
        "checkin": "106",
        "joinTime": "2016-10-14"
    },
    {
        "id": "10019",
        "username": "张三19",
        "email": "test19@email.com",
        "sex": "男",
        "city": "浙江杭州",
        "sign": "保持真善美，温和待人",
        "experience": "106",
        "ip": "192.168.0.8",
        "checkin": "106",
        "joinTime": "2016-10-14"
    },
    {
        "id": "10020",
        "username": "张三20",
        "email": "test20@email.com",
        "sex": "男",
        "city": "浙江杭州",
        "sign": "保持真善美，温和待人",
        "experience": "106",
        "ip": "192.168.0.8",
        "checkin": "106",
        "joinTime": "2016-10-14"
    },
    {
        "id": "10021",
        "username": "张三21",
        "email": "test21@email.com",
        "sex": "男",
        "city": "浙江杭州",
        "sign": "保持真善美，温和待人",
        "experience": "106",
        "ip": "192.168.0.8",
        "checkin": "106",
        "joinTime": "2016-10-14"
    },
    {
        "id": "10022",
        "username": "张三22",
        "email": "test22@email.com",
        "sex": "男",
        "city": "浙江杭州",
        "sign": "保持真善美，温和待人",
        "experience": "106",
        "ip": "192.168.0.8",
        "checkin": "106",
        "joinTime": "2016-10-14"
    },
    {
        "id": "10023",
        "username": "张三23",
        "email": "test23@email.com",
        "sex": "男",
        "city": "浙江杭州",
        "sign": "保持真善美，温和待人",
        "experience": "106",
        "ip": "192.168.0.8",
        "checkin": "106",
        "joinTime": "2016-10-14"
    },
    {
        "id": "10024",
        "username": "张三24",
        "email": "test24@email.com",
        "sex": "男",
        "city": "浙江杭州",
        "sign": "保持真善美，温和待人",
        "experience": "106",
        "ip": "192.168.0.8",
        "checkin": "106",
        "joinTime": "2016-10-14"
    }
]